home *** CD-ROM | disk | FTP | other *** search
/ Software USA: Back to School / Software USA: Back to School.iso / pc / children / decoder / run / decoder.exe / decoder.dxr / script_7.ls < prev    next >
Encoding:
Text File  |  1996-11-19  |  347 b   |  14 lines

  1. global gValidKeyList, gUpperCaseTable
  2.  
  3. on keyDown
  4.   if (the number of chars in field "To be Encoded" >= 80) and (the keyCode <> 51) then
  5.     alert("The message should not exceed 80 characters!")
  6.     exit
  7.   end if
  8.   if getOne(gValidKeyList, the key) or (the keyCode = 51) then
  9.     pass()
  10.   else
  11.     alert("This is not a valid input!")
  12.   end if
  13. end
  14.